package com.markerhub.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.markerhub.entity.Tick;
import com.markerhub.mapper.TickMapper;
import com.markerhub.service.TickService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 深林中的书海
 * @since 2021-12-16
 */
@Service
public class TickServiceImpl extends ServiceImpl<TickMapper, Tick> implements TickService {

    @Override
    public Page<Tick> getTickMsgToName(Page<Tick> page) {
        return page.setRecords(this.baseMapper.getTickMsgToName(page));
    }

    @Override
    public Page<Tick> findTickMsg(Page<Tick> page, String title) {
        return page.setRecords(this.baseMapper.findTickMsg(page,title));
    }
}
